package rohyunji.swing.outline;

import java.awt.FlowLayout;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.SwingUtilities;

public class J12FlowLayout extends JFrame
{
	public J12FlowLayout() 
	{
		setDefaultLookAndFeelDecorated(true);
		setTitle("FlowLayou-수평배치");	
		setLayout(new FlowLayout(FlowLayout.CENTER,40,40));
		setBounds(250,250,450,300);
		
		for(int i=1;i<=10;i++) add(new JButton("버튼"+i));
		
		setVisible(true);
	}
	
	public static void main(String[] args)
	{
		SwingUtilities.invokeLater(new Runnable() {
		public void run() {new J12FlowLayout();}});
	}
}
